#ifndef __OLED_CTRL_H
#define __OLED_CTRL_H

#include <stdint.h>
#include "armaction.h"

typedef enum
{
	STATE_DATA = 0x00,
	INSIDE_DATA,
	OUTSIDE_DATA,
}OLED_Hangar_Data_e;

typedef enum
{
	OLED_HANGAR_STATE,
    OLED_HANGAR_INSIDE_DATA,
    OLED_HANGAR_OUTSIDE_DATA,
//	OLED_HANGAR_TASK_STATE,
    OLED_HANGAR_CTRL,	
	OLED_HANGAR_ERROR,
	OLED_HANGAR_HISTROY,
}OLED_Ctrl_e;


typedef struct
{
	char *   str;
	Hangar_Dev_e dev;
}OLED_Hangar_State_t;

typedef struct
{
	char*   str;
	float*  value;
	char*   unit;
}OLED_SENSOR_DATA_t;


typedef struct
{
	char*   str;
	uint8_t err_dev;
}OLED_ERROR_t;

typedef struct 
{
	char*    cmd_c;
	uint8_t  cmd_u;
	uint8_t* cmd_state;
}OLED_Hangar_Ctrl_t;


typedef struct 
{
	char* str;
	void (*function)(void *param);
}OLED_MIN_MENU_t;



void OLED_HangarStart_Task(void *param);
#endif



